package com.example.common;

import com.example.http.HttpRequestServer;
import com.example.http.HttpRespServer;
import com.example.socket.ServletRequest;
import com.example.socket.ServletResponse;

import java.util.List;

/**
 * @Classname HttpHandlerWeb
 * @Description TODO
 * @Date 2023/4/26 9:09
 * @Created by XiongXiong
 * @Author: X.I.O
 *
 * web 拦截
 */
public interface HttpHandlerWeb {


    /**
     * 拦截执行前
     * @param request  响应头
     * @param response  响应体
     * @param objects   请求参数
     */
    public void beforeHandler(ServletRequest request, ServletResponse response, List<Object> objects);


    /**
     * 拦截执行后
     * @param request   响应头
     * @param response   响应体
     * @param obj      返回结果
     * @return
     */
    public Object afterHandler(ServletRequest request, ServletResponse response,Object obj);
}
